package com.wunong.smart.commission.client.enums;

import com.wunong.smart.domain.platform.common.IEnum;
import com.wunong.smart.domain.platform.utils.ICodes;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 代办操作
 *
 * @author create by zealot.zt
 */
@AllArgsConstructor
@Getter
public enum CommissionOperationEnum implements IEnum {

    CREATE(1, "创建代办"),
    FINISH(2, "结束代办"),
    CANCEL(3, "取消代办"),
    ;

    private int code;
    private String name;

    public static CommissionOperationEnum of(Integer code) {
        return ICodes.findFirst(CommissionOperationEnum.values(), code);
    }

}
